Optimal. Leaf size=99 \[ -\frac {\left (6+23 x^2\right ) \sqrt {3+5 x^2+x^4}}{12 x^4}+\frac {3}{2} \tanh ^{-1}\left (\frac {5+2 x^2}{2 \sqrt {3+5 x^2+x^4}}\right )-\frac {77 \tanh ^{-1}\left (\frac {6+5 x^2}{2 \sqrt {3} \sqrt {3+5 x^2+x^4}}\right )}{24 \sqrt {3}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 99, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.240, Rules used = {1265, 824, 857,
635, 212, 738} \begin {gather*} -\frac {\sqrt {x^4+5 x^2+3} \left (23 x^2+6\right )}{12 x^4}+\frac {3}{2} \tanh ^{-1}\left (\frac {2 x^2+5}{2 \sqrt {x^4+5 x^2+3}}\right )-\frac {77 \tanh ^{-1}\left (\frac {5 x^2+6}{2 \sqrt {3} \sqrt {x^4+5 x^2+3}}\right )}{24 \sqrt {3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 635
Rule 738
Rule 824
Rule 857
Rule 1265
Rubi steps
\begin {align*} \int \frac {\left (2+3 x^2\right ) \sqrt {3+5 x^2+x^4}}{x^5} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {(2+3 x) \sqrt {3+5 x+x^2}}{x^3} \, dx,x,x^2\right )\\ &=-\frac {\left (6+23 x^2\right ) \sqrt {3+5 x^2+x^4}}{12 x^4}-\frac {1}{24} \text {Subst}\left (\int \frac {-77-36 x}{x \sqrt {3+5 x+x^2}} \, dx,x,x^2\right )\\ &=-\frac {\left (6+23 x^2\right ) \sqrt {3+5 x^2+x^4}}{12 x^4}+\frac {3}{2} \text {Subst}\left (\int \frac {1}{\sqrt {3+5 x+x^2}} \, dx,x,x^2\right )+\frac {77}{24} \text {Subst}\left (\int \frac {1}{x \sqrt {3+5 x+x^2}} \, dx,x,x^2\right )\\ &=-\frac {\left (6+23 x^2\right ) \sqrt {3+5 x^2+x^4}}{12 x^4}+3 \text {Subst}\left (\int \frac {1}{4-x^2} \, dx,x,\frac {5+2 x^2}{\sqrt {3+5 x^2+x^4}}\right )-\frac {77}{12} \text {Subst}\left (\int \frac {1}{12-x^2} \, dx,x,\frac {6+5 x^2}{\sqrt {3+5 x^2+x^4}}\right )\\ &=-\frac {\left (6+23 x^2\right ) \sqrt {3+5 x^2+x^4}}{12 x^4}+\frac {3}{2} \tanh ^{-1}\left (\frac {5+2 x^2}{2 \sqrt {3+5 x^2+x^4}}\right )-\frac {77 \tanh ^{-1}\left (\frac {6+5 x^2}{2 \sqrt {3} \sqrt {3+5 x^2+x^4}}\right )}{24 \sqrt {3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.18, size = 91, normalized size = 0.92 \begin {gather*} \frac {1}{36} \left (-\frac {3 \left (6+23 x^2\right ) \sqrt {3+5 x^2+x^4}}{x^4}+77 \sqrt {3} \tanh ^{-1}\left (\frac {x^2-\sqrt {3+5 x^2+x^4}}{\sqrt {3}}\right )-54 \log \left (-5-2 x^2+2 \sqrt {3+5 x^2+x^4}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.28, size = 121, normalized size = 1.22
method | result | size |
risch | \(-\frac {23 x^{6}+121 x^{4}+99 x^{2}+18}{12 x^{4} \sqrt {x^{4}+5 x^{2}+3}}+\frac {3 \ln \left (x^{2}+\frac {5}{2}+\sqrt {x^{4}+5 x^{2}+3}\right )}{2}-\frac {77 \arctanh \left (\frac {\left (5 x^{2}+6\right ) \sqrt {3}}{6 \sqrt {x^{4}+5 x^{2}+3}}\right ) \sqrt {3}}{72}\) | \(86\) |
elliptic | \(\frac {3 \ln \left (x^{2}+\frac {5}{2}+\sqrt {x^{4}+5 x^{2}+3}\right )}{2}-\frac {\sqrt {x^{4}+5 x^{2}+3}}{2 x^{4}}-\frac {23 \sqrt {x^{4}+5 x^{2}+3}}{12 x^{2}}-\frac {77 \arctanh \left (\frac {\left (5 x^{2}+6\right ) \sqrt {3}}{6 \sqrt {x^{4}+5 x^{2}+3}}\right ) \sqrt {3}}{72}\) | \(86\) |
trager | \(-\frac {\left (23 x^{2}+6\right ) \sqrt {x^{4}+5 x^{2}+3}}{12 x^{4}}-\frac {77 \RootOf \left (\textit {\_Z}^{2}-3\right ) \ln \left (-\frac {5 \RootOf \left (\textit {\_Z}^{2}-3\right ) x^{2}+6 \RootOf \left (\textit {\_Z}^{2}-3\right )+6 \sqrt {x^{4}+5 x^{2}+3}}{x^{2}}\right )}{72}-\frac {3 \ln \left (2 x^{2}-2 \sqrt {x^{4}+5 x^{2}+3}+5\right )}{2}\) | \(98\) |
default | \(-\frac {\left (x^{4}+5 x^{2}+3\right )^{\frac {3}{2}}}{6 x^{4}}-\frac {13 \left (x^{4}+5 x^{2}+3\right )^{\frac {3}{2}}}{36 x^{2}}+\frac {77 \sqrt {x^{4}+5 x^{2}+3}}{72}-\frac {77 \arctanh \left (\frac {\left (5 x^{2}+6\right ) \sqrt {3}}{6 \sqrt {x^{4}+5 x^{2}+3}}\right ) \sqrt {3}}{72}+\frac {13 \left (2 x^{2}+5\right ) \sqrt {x^{4}+5 x^{2}+3}}{72}+\frac {3 \ln \left (x^{2}+\frac {5}{2}+\sqrt {x^{4}+5 x^{2}+3}\right )}{2}\) | \(121\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.49, size = 106, normalized size = 1.07 \begin {gather*} -\frac {77}{72} \, \sqrt {3} \log \left (\frac {2 \, \sqrt {3} \sqrt {x^{4} + 5 \, x^{2} + 3}}{x^{2}} + \frac {6}{x^{2}} + 5\right ) + \frac {1}{6} \, \sqrt {x^{4} + 5 \, x^{2} + 3} - \frac {13 \, \sqrt {x^{4} + 5 \, x^{2} + 3}}{12 \, x^{2}} - \frac {{\left (x^{4} + 5 \, x^{2} + 3\right )}^{\frac {3}{2}}}{6 \, x^{4}} + \frac {3}{2} \, \log \left (2 \, x^{2} + 2 \, \sqrt {x^{4} + 5 \, x^{2} + 3} + 5\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 112, normalized size = 1.13 \begin {gather*} \frac {77 \, \sqrt {3} x^{4} \log \left (\frac {25 \, x^{2} - 2 \, \sqrt {3} {\left (5 \, x^{2} + 6\right )} - 2 \, \sqrt {x^{4} + 5 \, x^{2} + 3} {\left (5 \, \sqrt {3} - 6\right )} + 30}{x^{2}}\right ) - 108 \, x^{4} \log \left (-2 \, x^{2} + 2 \, \sqrt {x^{4} + 5 \, x^{2} + 3} - 5\right ) - 138 \, x^{4} - 6 \, \sqrt {x^{4} + 5 \, x^{2} + 3} {\left (23 \, x^{2} + 6\right )}}{72 \, x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (3 x^{2} + 2\right ) \sqrt {x^{4} + 5 x^{2} + 3}}{x^{5}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 169 vs.
\(2 (79) = 158\).
time = 4.22, size = 169, normalized size = 1.71 \begin {gather*} \frac {77}{72} \, \sqrt {3} \log \left (\frac {x^{2} + \sqrt {3} - \sqrt {x^{4} + 5 \, x^{2} + 3}}{x^{2} - \sqrt {3} - \sqrt {x^{4} + 5 \, x^{2} + 3}}\right ) + \frac {127 \, {\left (x^{2} - \sqrt {x^{4} + 5 \, x^{2} + 3}\right )}^{3} + 228 \, {\left (x^{2} - \sqrt {x^{4} + 5 \, x^{2} + 3}\right )}^{2} - 159 \, x^{2} + 159 \, \sqrt {x^{4} + 5 \, x^{2} + 3} - 324}{12 \, {\left ({\left (x^{2} - \sqrt {x^{4} + 5 \, x^{2} + 3}\right )}^{2} - 3\right )}^{2}} - \frac {3}{2} \, \log \left (2 \, x^{2} - 2 \, \sqrt {x^{4} + 5 \, x^{2} + 3} + 5\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\left (3\,x^2+2\right )\,\sqrt {x^4+5\,x^2+3}}{x^5} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________